package com.joinlabs.mapper;

import java.util.List;

import com.joinlabs.entity.Comment;

public interface CommentMapper {
    int deleteByPrimaryKey(Long commentId);

    int insert(Comment record);

    int insertSelective(Comment record);

    Comment selectByPrimaryKey(Long commentId);

    int updateByPrimaryKeySelective(Comment record);

    int updateByPrimaryKey(Comment record);
    /**
     *     通过微博id查询评论
     * @param wBid
     * @return
     */
	List<Comment> selectAllCommentByWBid(long wBid);
/**
 * 插入评论
 * @param record
 * @return
 */
	int insertComment(Comment record);
}